// diffing_test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "ASTBuilder.h"
#include "ASTree.h"

using namespace AST;

int _tmain(int argc, _TCHAR* argv[])
{
	char* filenameBefore = "C:\\Users\\aasenjo\\Documents\\Visual Studio 2010\\Projects\\clang_c_test_01\\testPrograms\\toy\\toy01\\toy01.cpp";
	char* filenameAfter = "C:\\Users\\aasenjo\\Documents\\Visual Studio 2010\\Projects\\clang_c_test_01\\testPrograms\\toy\\toy01\\toy02.cpp";

   ASTree before(std::string("A"));
   ASTree after(std::string("B"));
 
   Builder  beforeBuilder, afterBuilder;

   beforeBuilder.buildAST(filenameBefore,before);
   afterBuilder.buildAST(filenameAfter,after);
   std::vector<std::string> diffNodes =  ASTree::diffTrees(after, before);
   before.viewGraph();
   after.viewGraph();
 
   return 0;
}

